package com.nuvsoft.android.nuvgamenet;

import java.util.List;

import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;


public class GameLobbyPlayerListAdapter extends ArrayAdapter<GamePlayer> {

	private List<GamePlayer> items;
	private NuvGameNetApplication na;

	public GameLobbyPlayerListAdapter(NuvGameNetApplication na, int textViewResourceId,
			List<GamePlayer> players) {
		super(na, textViewResourceId, players);
		this.na = na;
		this.items = players;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		GamePlayer o = items.get(position);
		return o.getListView(na);
	}
}
